package cn.hyatt.core.aspectj;

import cn.hyatt.core.annotation.RequestLimit;
import lombok.extern.slf4j.Slf4j;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.springframework.stereotype.Component;

/**
 * 请求限制
 * @author hyatt
 */
@Slf4j
@Aspect
@Component
public class RequestLimitAspect {

    /**
     * 之前
     */
    @Before("@annotation(requestLimit)")
    public void doBefore(RequestLimit requestLimit) {
        log.info("请求限制-之前");
    }

}
